﻿using DAL.ComplexModels;
using DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.Interface
{
    public interface IComplaintBagImpl:IImpl
    {
        int GetSenderUserIDByBagID(string bagID);


        int GetSenderUserIDByComplaintID(int bagID);


        int GetGetterUserIDByComplaintID(int complaintID);


        IList<ComplaintBag> GetList();



        IList<ComplaintBag> GetList(string username, string phone);


        (int, IList<ComplaintBag>) GetList(string username, string phone, int rows, int page);




        (int, IList<ComplaintBag>) GetList(int rows, int page);


        Complaint Find(int id);




        bool Update(int id, Complaint complaint);


        bool Delete(ComplaintBag complaint);


         bool Delete(int id);


        bool Add(Complaint complaint);

    }
}
